package storage

import "time"

type Refresher interface {
	Refresh()
}

func Refresh(r Refresher, d time.Duration) {
	go func() {
		for {
			r.Refresh()
			time.Sleep(d)
		}
	}()
}
